import random
import pygame
from actor import ActionByMulti


class PrizesSprite(pygame.sprite.Sprite):
    def __init__(self, x: int, y: int):
        """
        初始化静态道具
        :param x: 精灵坐标x
        :param y: 精灵坐标y
        """
        super(PrizesSprite, self).__init__()
        id = random.randint(1, 4)
        self.image = pygame.image.load("./resources/prizes/prizes"+ str(id) + ".png")

        self.pos_x = x
        self.pos_y = y

    def draw(self, surface, x, y):
        """
        精灵绘制
        :param surface: 绘制surface
        :return:
        """
        surface.blit(self.image, (self.pos_x - x, self.pos_y - y))

    def run(self, down_flag, key_list):
        """
        不运动
        :return:
        """
        pass